package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.BookingHotelApplication;
import com.wanmait.baohan.pojo.HotelAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookingHotelApplicationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookingHotelApplication record);

    int insertSelective(BookingHotelApplication record);

    BookingHotelApplication selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookingHotelApplication record);

    int updateByPrimaryKey(BookingHotelApplication record);

    List<BookingHotelApplication> selectByStaffid(BookingHotelApplication bookingHotelApplication);

    void updateByHotel(@Param("userId") Integer userId,@Param("trvalId") Integer trvalId);

    BookingHotelApplication selectByReId(Integer id);

    List<BookingHotelApplication> selectAll(BookingHotelApplication bookingHotelApplication);

    void updateState(@Param("id") Integer id,@Param("state") Integer state);

    BookingHotelApplication selectByHotel(BookingHotelApplication bookingHotelApplication);

}